function main(params) {
    const self = this;

    debugger

    let pageTableList = self.$$element("page_widget_list_fyv18v");

    api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('7bec4420-5109-4cfb-896e-c40178c7022e','" + params.id + "',['id','node_type'])").then((res) => {
        pageTableList.$children[0].$$setExtraParams({
            humanTypeCode: '1'
        })
        const unitIds = res.result
            .filter(item => item.node_type === "unit")
            .map(item => item.id);
        let queryElement = pageTableList.dataEngine.state.getElement("query_field_wrapper_6ltdtw");
        const queryProjectIdModel = queryElement.data.members[0];
        if (queryElement && queryElement.data && queryElement.data.members) {

            queryProjectIdModel.props.defaultValue.value = unitIds;
        }
        let tableCondition = pageTableList.dataEngine.state.getElement("condition_de5q35");
        if (tableCondition) {
            tableCondition.onQuery();
        }

    }).catch(err => {
        self.$message.error(err.message);

    });

}
